<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateWxMaterialImageTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('wx_material_image', function(Blueprint $table)
		{
			$table->increments('id')->comment('主键id');
			$table->string('media_id')->nullable()->comment('媒体id');
			$table->string('url')->nullable();
			$table->string('name')->nullable()->comment('图片原文件名');
			$table->bigInteger('update_time')->nullable()->comment('微信的更新时间');
			$table->timestamps();
		});
	}


	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('wx_material_image');
	}

}
